<template>
  <div class="submit">
    <div class="sub-top">
      <div>
        <div class="flol">
          <div class="col333 font16 place">地址设置</div>
          <div class="address-border">
            <div class="pad-16">
              <span class="col333 font12">name</span>
              <span class="col333 font12 flor">18515032141</span>
            </div>
            <div class="place-m">
              <div class="font12 col333">北京市 北京市 昌平区</div>
              <div class="font12 col333">付庄街道666</div>
              <span class="font12 col333 opac4">默认地址</span>
            </div>
            <!--更改地址-->
            <div class="changePlace">
              <el-button type="text" @click="changeVisible = true" class="font12 colgreen cur">更换地址</el-button>
              <el-dialog
                title="地址选择"
                :visible.sync="changeVisible"
                width="66%"
                :before-close="handleChange">
                <span>
                  <div class="changeNews">
                    <span class="border-news"></span>
                    <div class="change-item">
                      <div class="item-dev">

                        <div class="item_list item_bg posr marr11">
                          <div class="pad-16">
                            <span class="col333 font12">name</span>
                            <span class="col333 font12 flor">18515032141</span>
                          </div>
                          <div class="border-change"></div>
                          <div class="border-textList">
                            <div class="col333 font12">北京市 北京市 昌平区</div>
                            <div class="col333 font12">付庄街道666</div>
                            <div class="col333 font12 opac4">默认地址</div>
                          </div>
                        </div>


                        <div class="item_list marr0 item_bg posr">
                          <div class="pad-16">
                            <span class="col333 font12">name</span>
                            <span class="col333 font12 flor">18515032141</span>
                          </div>
                          <div class="border-change"></div>
                          <div class="border-textList">
                            <div class="col333 font12">北京市 北京市 昌平区</div>
                            <div class="col333 font12">付庄街道666</div>
                            <div class="col333 font12 opac4">默认地址</div>
                          </div>
                        </div>
                        <!--没有地址-->
                        <div></div>
                      </div>
                    </div>
                    <div></div>

                  </div>
                </span>
                <span slot="footer" class="dialog-footer">
                  <el-button @click="changeVisible = false">取 消</el-button>
                  <el-button type="primary" @click="changeVisible = false">确 定</el-button>
                </span>
              </el-dialog>

            </div>
            <!--新增地址-->
            <div class="addPlace">
              <el-button type="text" @click="addVisible = true" class="font12 colgreen mar-l16px cur">新增</el-button>
              <el-dialog
                title="地址选择"
                :visible.sync="addVisible"
                width="40%"
                :before-close="handleAdd">
                <span>
                  <div class="addNews">
                    <span class="border-news"></span>
                    <div class="news-item padt20">
                      <label class="item_label">收货人:</label>
                      <div class="item-content">
                        <input autocomplete="off" placeholder="名字" type="text" rows="2" validateevent="true">
                      </div>
                    </div>
                    <div class="news-item">
                      <label class="item_label">手机号:</label>
                      <div class="item-content">
                        <input autocomplete="off" placeholder="11位手机号" type="text" rows="2" validateevent="true">
                      </div>
                    </div>
                    <div class="news-item">
                      <label class="item_label">区域选择:</label>
                      <div class="item-content w100">
                        <template>
                          <el-select v-model="value" placeholder="请选择" style="width: 110px">
                            <el-option
                              v-for="item in options"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value">
                            </el-option>
                          </el-select>
                        </template>
                        <template>
                          <el-select v-model="value" placeholder="请选择" style="width: 110px">
                            <el-option
                              v-for="item in options"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value">
                            </el-option>
                          </el-select>
                        </template>
                        <template>
                          <el-select v-model="value" placeholder="请选择" style="width: 110px">
                            <el-option
                              v-for="item in options"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value">
                            </el-option>
                          </el-select>
                        </template>
                      </div>
                    </div>
                    <div class="news-item">
                      <label class="item_label">详细地址:</label>
                      <div class="item-content">
                        <input autocomplete="off" placeholder="街道、门牌信息等" type="text" rows="2" validateevent="true">
                      </div>
                    </div>
                  </div>
                </span>
                <span slot="footer" class="dialog-footer">
                    <el-button @click="addVisible = false">取 消</el-button>
                    <el-button type="primary" @click="addVisible = false">确 定</el-button>
                  </span>
              </el-dialog>
            </div>
          </div>
        </div>

        <div class="flol mar-l13">
          <div class="col333 font16 place">优惠券</div>
          <div class="address-border">
            <div class="pad-16">
              <span class="font12 col777">暂无优惠券</span>
            </div>
            <div class="place-m"></div>
            <div class="addPlace">
              <span class="font12 colgreen cur">更换优惠券</span>
            </div>
          </div>
        </div>
        <div class="flol mar-l13">
          <div class="col333 font16 place">发票设置</div>
          <div class="address-border">
            <div class="pad-16">
              <span class="font12 clFFA029">温馨提示：亲爱的客户，若您要申请开发票，可在订单完成后，到“个人中心-发票管理”中提交申请，谢谢！</span>
            </div>
          </div>
        </div>
      </div>

      <!--弹框-->

      <div class="changePlace"></div>
    </div>


    <!-- 抱歉，该地址不支持部分商品的配送，请更换收货地址-->
    <div class="tip disNo">
      <i class="el-icon-error"></i>
      抱歉，该地址不支持部分商品的配送，请更换收货地址
    </div>

    <div class="sub-cen mar-t20">
      <h3 class="order-h">确认订单信息</h3>
      <div class="list-table">
        <div class="tb-header">
          <span class="column-1">店铺商品</span>
          <span class="column-2">结款方式</span>
          <span class="column-3">配送区域及费用</span>
          <span class="column-4">金额</span>
          <span class="column-5">其他</span>
        </div>
        <div class="order-row">
          <div class="shop-store">
            <img src="../../assets/image/dian.png" alt="">
            <span class="font14">店铺：西澳龙.面包蟹巴</span>
          </div>
          <div class="row-info">
            <div class="column-1 pad-t-b">
              <div class="prod-img">
                <img src="../../assets/image/bei.jpg" alt="">
                <span>海外原包</span>
              </div>
              <div class="prod-info">
                <h4>海之蓝 新西兰 蓝鲍鱼</h4>
                <p class="font12 mar-t5">08-02 到港</p>
                <p class="font12">
                  <span class="font12 padr5">10.0/千克箱 </span>
                  <span class="font12">14~16只/千克</span>
                </p>
                <p class="font14 padt3">
                  该商品不提供验货
                </p>
              </div>
            </div>

            <div class="column-2 pad-t-b">
              <template>
                <el-radio v-model="radio" label="1">全额支付</el-radio>
              </template>
            </div>

            <div class="column-3 pad-t-b send-type">
              <span class="view-freight">查看配送方式</span>
              <p>极鲜网活鲜冰鲜北京市</p>
              <p>运费￥50.00元</p>
            </div>

            <div class="column-4 pad-t-b send-type">
              <p class="fontw700">￥154.34/500g</p>
              <p>￥3086.8 / 箱&nbsp;&nbsp;X1</p>
              <p>￥3136.80</p>
            </div>

            <div class="column-5 fill-info">
              <div class="remark">
                <label>备注</label>
                <input type="text" placeholder="填写您想给卖家的备注信息">
              </div>
              <div class="set-adjust">
                <label>调剂设置</label>
                <span>允许所有调剂方式</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="sub-bot clear">
      <ul class="moneys font14 clear">
        <li class="padt6">
          <b>货值金额</b>
          <span>￥3086.80
				</span>
        </li>
        <li class="padt6">
          <b>运费金额</b>
          <span>￥50.00</span>
        </li>
        <li class="padt6">
          <b>订单总金额</b>
          <span>￥3136.80</span>
        </li>
      </ul>

      <div class="sub-order flor">
        <div>
          <h4>实付款：3136.80</h4>
          <button class="sub-btn">提交订单</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "submit",
    data() {
      return {
        radio: '1',
        addVisible: false,
        changeVisible: false,
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
          value: '选项5',
          label: '北京烤鸭'
        }],
        value: ''
      }
    },
    methods: {
      handleAdd(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {
          });
      },
      handleChange(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {
          });
      },
    }
  }
</script>

<style scoped>
  .submit {
    margin: 30px auto 0;
    width: 1200px;
    min-height: 800px;
  }

  .sub-top {
    overflow: hidden;

    padding-bottom: 8px;
    padding-top: 16px;
  }

  .place {
    line-height: 22px;
    padding-bottom: 16px;
    font-weight: bold;
  }

  .place-m {
    line-height: 21px;
    height: 95px;
    padding: 16px;
    border-top: 1px solid rgba(51, 51, 51, 0.1);
  }

  .addPlace {
    position: absolute;
    top: 76%;
    right: 5%;
  }

  .changePlace {
    position: absolute;
    top: 76%;
    right: 18%;
  }

  .changeNews{
    padding: 12px 40px 0;
    color: #48576a;
    font-size: 14px;
  }

  .addNews {
    color: #48576a;
    font-size: 14px;
    padding: 20px 40px;
  }

  .addNews .news-item {
    margin-bottom: 22px;
  }

  .item_label {
    width: 80px;
    text-align: right;
    vertical-align: middle;
    float: left;
    font-size: 14px;
    color: #48576a;
    line-height: 1;
    padding: 11px 12px 11px 0;
    box-sizing: border-box;
  }

  .border-news {
    display: block;
    border-bottom: 1px solid rgba(51, 51, 51, .2);
  }

  .item-content {
    width: 240px;
    margin-left: 80px;
    line-height: 36px;
    position: relative;
    font-size: 14px;
    color: #c3c3c3;
  }

  .item-content input {
    height: 40px;
    border: 1px solid #dbdbdb;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    box-sizing: border-box;
    color: #1f2d3d;
    font-size: inherit;
    line-height: 1;
    outline: 0;
    padding: 3px 10px;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
    display: inline-block;
  }

  .changeNews .change-item {
    padding: 30px 0;
    color: #48576a;
    font-size: 14px;
  }

  .changeNews .item-dev {
    overflow: auto;
    max-height: 650px;
  }

  .item_list {
    float: left;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .item_bg {
    width: 389px;
    height: 145px;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
  }

  .border-change {
    height: 1px;
    background: rgb(51, 51, 51);
    opacity: 0.1;
  }

  .border-textList{
    line-height: 21px;
    height: 95px;
    padding: 16px;
  }




  .tip {
    display: block;
    color: #ff538d;
    font-size: 12px;
    font-weight: 700;
  }

  .order-h {
    color: #333;
    font-size: 16px;
    font-weight: 700;
  }

  .list-table {
    margin-top: 16px;
    border: 1px solid rgba(51, 51, 51, .1);
  }

  .list-table .tb-header {
    padding: 16px;
    border-bottom: 2px solid rgba(51, 51, 51, .2);
    display: table;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .list-table .tb-header span {
    display: table-cell;
    font-size: 14px;
  }

  .column-1 {
    width: 410px;
  }

  .column-2 {
    width: 210px;
    font-size: 12px;
  }

  .column-3 {
    width: 195px;
    font-size: 12px;
  }

  .column-4 {
    width: 160px;
    font-size: 12px;
  }

  .column-5 {
    font-size: 12px;
  }

  .sub-cen .shop-store {
    padding: 16px;
    display: block;
    border-top: 1px solid rgba(51, 51, 51, .1);
  }

  .sub-cen .shop-store img {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: middle;
  }

  .sub-cen .shop-store span {
    display: inline-block;
    vertical-align: middle;
  }

  .sub-cen .row-info {
    display: table;
    width: 100%;
    padding: 0 0 0 16px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-top: 1px solid rgba(51, 51, 51, .1);
  }

  .sub-cen .row-info > div {
    display: table-cell;
    vertical-align: top;
    overflow: hidden;
  }

  .prod-img {
    position: relative;
    width: 80px;
    height: 80px;
    float: left;
  }

  .prod-img img {
    display: inline-block;
    width: 80px;
    height: 80px;
  }

  .prod-img span {
    position: absolute;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 2px;
    font-size: 12px;
    padding: 1px 3px;
  }

  .prod-info {
    float: left;
    margin-left: 16px;
    width: 300px;
  }

  .prod-info h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    font-size: 14px;
    color: #333;
    font-weight: lighter;
  }

  .send-type {
    line-height: 2em;
  }

  .fill-info {
    border-left: 1px solid #eaeaea;
    height: 100%;
  }

  .fill-info > div:first-child {
    border-bottom: 1px solid rgba(51, 51, 51, .1);
  }

  .fill-info > div {
    padding: 0 8px;
  }

  .remark {
    position: relative;
    height: 56px;
    line-height: 57px;
    border-bottom: 1px solid rgba(51, 51, 51, .1);
  }

  .fill-info label {
    display: inline-block;
    width: 50px;
  }

  .remark input {
    position: absolute;
    top: 21px;
    right: 0;
    border: none;
    outline: none;
    font-size: 12px;
  }

  .set-adjust {
    height: 57px;
    line-height: 57px;
    overflow: hidden;
  }

  .set-adjust > span {
    color: #28ada1;
    float: right;
    cursor: pointer;
  }

  .sub-bot {
    overflow: hidden;
  }

  .sub-bot ul {
    text-align: right;
    margin-top: 18px;
    padding-right: 22px;
  }

  .sub-bot ul li {
    position: relative;
  }

  .sub-bot .moneys b, .sub-bot .moneys span {
    display: inline-block;
    vertical-align: middle;
  }

  .sub-bot .moneys b {
    position: absolute;
    top: 8px;
    right: 100px;
    width: 300px;
    text-align: right;
  }

  .sub-bot .moneys span {
    padding-left: 23px;
  }

  .sub-order {
    margin-top: 16px;
    overflow: hidden;
  }

  .sub-order h4 {
    display: inline-block;
    vertical-align: middle;
    font-size: 24px;
    font-weight: inherit;
  }

  .sub-order .sub-btn {
    background: #1a81fe;
    font-size: 16px;
    color: #fff;
    border: none;
    width: 145px;
    height: 48px;
    border-radius: 2px;
    margin-left: 8px;
    cursor: pointer;
  }

  .view-freight {
    color: #28ada1;
    cursor: pointer;
  }

  .flol {
    float: left;
  }

  .flor {
    float: right;
  }

  .mar-l13 {
    margin-left: 13px;
  }

  .mar-l16px {
    margin-left: 16px;
  }

  .mar-t20 {
    margin-top: 20px;
  }

  .mar-t5 {
    margin-top: 5px;
  }

  .col333 {
    color: #333;
  }

  .colgreen {
    color: rgb(25, 167, 154);
  }

  .col777 {
    color: #777;
  }

  .clFFA029 {
    color: #ffa029;
  }

  .font16 {
    font-size: 16px;
  }

  .font14 {
    font-size: 14px;
  }

  .font12 {
    font-size: 12px;
  }

  .fontw700 {
    font-weight: 700;
  }

  .address-border {
    position: relative;
    width: 389px;
    height: 145px;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
  }

  .pad-16 {
    padding: 16px;
  }

  .opac4 {
    opacity: .4;
  }

  .cur {
    cursor: pointer;
  }

  .disNo {
    display: none;
  }

  .pad-t-b {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .padr5 {
    padding-right: 5px;
  }

  .padt3 {
    padding-top: 3px;
  }

  .padt6 {
    padding-top: 6px;
  }

  .padt20 {
    padding-top: 20px;
  }

  .clear {
    clear: both;
  }

  .w100 {
    width: 100%;
  }

  .marr0 {
    margin-right: 0;
  }

  .marr11 {
    margin-right: 11px;
  }

  .posr {
    position: relative;
  }

  /*选择时添加的样式*/
  .b-g-1 {
    width: 389px;
    height: 145px;
    border: 1px solid #1a81fe;
    border-radius: 2px;
  }
</style>
